﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Jade.Tools.SL.Controls
{
    /// <summary>
    /// Image Button
    /// </summary>
    public class ImageButton : Button
    {
        public ImageButton()
        {
            this.DefaultStyleKey = typeof(ImageButton);
        }

        public ImageSource Source
        {
            get { return base.GetValue(SourceProperty) as ImageSource; }
            set { base.SetValue(SourceProperty, value); }
        }

        public static readonly DependencyProperty SourceProperty =
            DependencyProperty.Register("Source", typeof(ImageSource), typeof(ImageButton), null);
    }
}
